package com.gking.centerSystem.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 各个系统模块访问日志
 */
@Data
@TableName("log_system_record")
public class LogSystemRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键id
    @TableId
    private String id;

    //系统唯一编码
    @TableField(value = "systemCode")
    private String systemCode;

    //模块唯一编码
    @TableField(value = "module")
    private String module;

    //访问的用户id
    @TableField(value = "userId")
    private String userId;

   //0公开访问 1权限访问
    @TableField(value = "type")
    private String type;

    //创建时间
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
